<template>
  <div class="payed-view">
    <div class="content" v-if="id != null">
      <div class="title">支付已完成!</div>
      <div class="id">订单编号:{{ id }}</div>
      <div class="btn">
        <van-goods-action>
          <van-goods-action-button to="/home" type="warning" text="返回首页" />
          <van-goods-action-button to="/TicketView/0/AllTicketView" type="danger" text="查看订单" />
        </van-goods-action>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PayedView",
  data() {
    return {
      id: null,
    };
  },
  activated() {
    this.id = JSON.parse(localStorage.getItem("payedData"))[0].id;
  },
};
</script>

<style lang="scss" scoped>
.payed-view {
  background-color: #fff;
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  padding-top: 50px;
  .title {
    font-size: 25px;
  }
  .id {
    margin: 20px 0;
    color: #999;
  }
  .btn{
		::v-deep .van-goods-action{
			bottom: 72%;
			width: 200px;
			margin: 0 auto;
		}
	}
}
</style>